import 'package:sow_app_core/sow_app_core.dart';

class MockTokenRepository implements TokenRepository {
  bool getted = false;
  String _token = "";
  @override
  Future<String> getToken() async {
    String token = !getted
        ? ""
        : "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijk4ZTQ5ZDZlLTYyMzUtNGM5Yy05NGJjLTkyMGZlNjk0NWY0YiJ9.npdr0QTAGurx6dRPzW_xTQO1WbU5q0gIJ6AmLT6wbFAMTwdAQ01g464Bk9dm2nCVFvedxqZoBiFUsi8BP_m9-A";
    getted = true;
    _token = token;
    return _token;
  }

  @override
  Future<void> setToken(String token) async => _token = token;
}
